﻿@namespace MudBlazor
@inherits MudComponentBase
@using Microsoft.AspNetCore.Components.Routing

<div class="@GetPanelClass()" @attributes="UserAttributes">

    @if (_sections.Any() && _sections.Count() > 1)
    {
        <MudText Typo="Typo.h6" GutterBottom="true">
            @Headline
        </MudText>
        <MudNavMenu Class="pl-4">
            @foreach (var docSection in _sections)
            {
                <MudNavLink Match="NavLinkMatch.All" Class="@GetNavLinkClass(docSection.IsActive)" @onclick="@(e => OnNavLinkClick(docSection.Id))">
                    @docSection.Title
                </MudNavLink>}
        </MudNavMenu>
    }
</div>

    @code { }